import { _decorator, Component, Node, tween } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Drum')
export class Drum extends Component {

    private guang: Node

    protected onLoad(): void {
        this.guang = this.node.getChildByName("guang");
        this.guang.active = false;
    }

    setJumped() {
        this.guang.active = true;
        tween(this.node).sequence(
            tween().to(0.1, { opacity: 128 }),
        ).start()
    }

}